-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a persistent cache for cloudfoundry metadata based on badger #20775
Conversation
fd5d6a1
to
32ef2e5
Compare
099abcf
to
1d361e9
Compare
a7ab5d3
to
70b9040
Compare
2d98602
to
18339c2
Compare
jenkins run the tests please |
1e7b0f4
to
124a931
Compare
jenkins run the tests please |
124a931
to
701fca2
Compare
@urso @exekias I am going to open this for review as I would like to reach 7.10, it'd be nice if you could take a look. There are still some "controversial" points, but I think they can be considered non-blockers:
Let me know if you prefer this split in two PRs, one for the cache and another one for the changes for Cloud Foundry. |
LGTM, besides lint issues which need some attention |
jenkins run the tests please |
…stic#20775) Cache on disk is used by add_cloudfoundry_metadata. Cache is written into the beats data directory. Objects in cache are serialized using CBOR encoding. Badger DB is added as dependency. (cherry picked from commit 76905a2)
* upstream/master: [CI] Setup git config globally (elastic#21562) docs: update generate_fields_docs.py (elastic#21359) Add support for additional fields from V2 ALB logs (elastic#21540) Move Prometheus query & remote_write to GA (elastic#21507) feat: add a new step to run the e2e tests for certain parts of Beats (elastic#21100) [Elastic Agent] Add elastic agent ID and version to events from filebeat and metricbeat. (elastic#21543) Release cloudfoundry input and processor as GA (elastic#21525) [Packetbeat] New SIP protocol (elastic#21221) [Filebeat][New Module] Add support for Microsoft MTP / 365 Defender (elastic#21446) [Beats][pytest] Asserting if filebeat logs include errors (elastic#20999) junipersrx-module initial release (elastic#20017) Add a persistent cache for cloudfoundry metadata based on badger (elastic#20775) Add missing changelog entry for cisco umbrella (elastic#21550) [Elastic Agent] Add upgrade CLI to initiate upgrade of Agent locally (elastic#21425) Enable filestream input (elastic#21533) Add filestream input reader (elastic#21481) [CI] fix 'no matches found within 10000' (elastic#21466) Fix billing.go aws.GetStartTimeEndTime (elastic#21531)
What does this PR do?
Add a persistent cache on disk for Cloudfoundry metadata, based on badger.
Why is it important?
Improve restart of beats when monitoring very big Cloudfoundry deployments.
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
Add settings to make it optional?How to test this PR locally
add_cloudfoundry_metadata
with Filebeat or Metricbeat.A way to confirm it is to check the http connections done with a reverse proxy like
mitmproxy
.Related issues